Swift Mailer authenticating but not sending mail

Asked by:
McSilvio / 13 Points
Time:
2012-05-24 9:35 am EST
Category:
Send Email From A Page
Hits:
2,664
Hi there,
I am using a wrapper for swift mailer with my php application hosted by you.

I've tested it locally and it works fine with my personal email account as the outgoing account.

I've created an email account for one of my add-on domains and have used the settings therein to configure my swift mail wrapper.

I've tested with WRONG credentials and I properly get an authentication error back. So I'm assuming its authenticating properly.

The wrapper gives me a "successfully sent" message, but no email is created. It is not found in the accounts "Sent" mail (using the horde webmail client) and it is not received. Sending mail from this account using the Horde webmail client DOES work (albeit 30 minutes late in some cases).

I've posted my configuration settings below. They are specific to the wrapper I am using for swift mail.

Could someone just verify the FORMAT of the credentials, and point out if I am missing any information?

//configuration
'mail' => array(
'class' => 'application.extensions.yii-mail.YiiMail',
'transportType' => 'smtp',
'transportOptions' => array(
'host' => 'secure28.webhostinghub.com',
'username' => 'fakeusername+fakedomain.com',
'password' => 'notarealpassword',
'port' => '465',
'encryption' => 'ssl',
),
'viewPath' => 'application.views.user',
'logging' => true,
'dryRun' => false
),

//mail message
public function sendRegistrationEmail($user){
$message = new YiiMailMessage;
$linkstring = 'http://www.funisher.com/user/activate?email=' . $user->email . '&code=' . $user->activationcode;
$message->view = 'activationemail';
$message->setBody( $linkstring, 'text/html');
$message->from = array(Yii::app()->params['adminEmail'] => 'Funisher Account Activation');
$message->subject = 'Funisher Account Activation';
$message->addTo($user->email);

Yii::app()->mail->send($message);
}




Thank you,
Silvio.

To ask this user for more information, please first login.

To submit an answer, please login.

Best answer chosen by User

0

ScottM
Staff
13,242 Points
2012-05-24 9:55 am EST
Hello Silvio,

In checking the email logs in the server, there are several failed sendings. The error it is throwing is a "Sender verify failed" This means that the email address specified as the sender does not exist. I have tested this from the site form and matched it in the logs.

I checked the email address referenced in the error message and see that it does not exist on the account. You will need to create that and then the email should send out fine.

I hope this answers your question. If you have any more questions or comments on the issue please leave a comment below so we can assist you further.

Thank you,
Scott M

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.