Hi
I've just enabled the module for testing and when sending email I receive the following errors:
Notice: Undefined index: account in SendGridMailSystem->mail() (line 38 of /Applications/MAMP/htdocs/examplesite/sites/all/modules/sendgrid_integration/inc/sendgrid.mail.inc).
Notice: Trying to get property of non-object in SendGridMailSystem->mail() (line 38 of /Applications/MAMP/htdocs/examplesite/sites/all/modules/sendgrid_integration/inc/sendgrid.mail.inc).
I've set my username and API key (password) in the configuration, and SSL is enabled. The email does however seem to be sent (it's logged through SendGrid and I receive it in my inbox). The site is currently running on my local machine (MAMP) for development.
Any help appreciated
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 2038549-account_parameter_notice-3.patch | 760 bytes | exlin |
| #1 | sendgrid-info.png | 31.72 KB | exlin |
Comments
Comment #1
exlin commentedCan you provide me the information about module witch sent the email.

If you haven't altered the the arguments, you will find it under email activity on sendgrid.com
Also what is php version you are using?
Those are php notices and often not dangerous if emails are working, but will get into it.
Comment #2
danmurf commentedThanks for the quick response, exlin. The UID is empty.
I was sending mail using a custom module I have built for our site, and I also tested it with the core 'contact' module (the same error for both).
I received this error on PHP 5.4.4 and 5.3.3.
Many thanks for your help
Comment #3
exlin commentedHi,
Could you test this patch if it is working?
Comment #4
danmurf commentedThe patch seemed to do the trick - the mail was sent + received. Here's the 'email activity' report:
Any idea why this problem is occurring on my install?
Many thanks for your speedy help with this :)
Comment #5
exlin commentedMy first assumption on arguments provided proved to be wrong. Clearly user_id isn't always provided ;)
Comment #6
danmurf commentedAh - makes sense.
Thanks for your help and for releasing the module anyway - much appreciated :)
Comment #7
entrepreneur2000 commentedpatch #3 worked for me